const router = require('express').Router()

const arr = [
    {
        id:1,
        userName:"小明",
        userAge:18,
        gender:0 // 0男 1女
    },
    {
        id:2,
        userName:"小红",
        userAge:18,
        gender:1 // 0男 1女
    }
]
const sign = "你若安好，便是晴天"
const content = "<div> <h1>我是富文本数据</h1> </div>"
router.get('/home',(req,res)=>{
    res.render('home',{
        arr,
        sign,
        content
    })
})

module.exports = router